package bb.lanxing.model.json;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;

public class WorkoutSlopeBean implements Parcelable {
    public static final Parcelable.Creator<WorkoutSlopeBean> CREATOR = new Parcelable.Creator<WorkoutSlopeBean>() {
        @Override
        public WorkoutSlopeBean createFromParcel(Parcel in2) {
            return new WorkoutSlopeBean(in2);
        }

        @Override
        public WorkoutSlopeBean[] newArray(int size) {
            return new WorkoutSlopeBean[size];
        }
    };
    private List<SlopeCoordinatesBean> slope_coordinates;
    private List<SlopeOverviewBean> slope_overview;
    private SlopeThumbnailsBean slope_thumbnails;
    private List<SlopesBean> slopes;

    @Override
    public int describeContents() {
        return 0;
    }

    public WorkoutSlopeBean() {
    }

    protected WorkoutSlopeBean(Parcel in2) {
        this.slope_thumbnails = (SlopeThumbnailsBean) in2.readParcelable(SlopeThumbnailsBean.class.getClassLoader());
        this.slopes = in2.createTypedArrayList(SlopesBean.CREATOR);
        this.slope_coordinates = in2.createTypedArrayList(SlopeCoordinatesBean.CREATOR);
        this.slope_overview = in2.createTypedArrayList(SlopeOverviewBean.CREATOR);
    }

    public SlopeThumbnailsBean getSlope_thumbnails() {
        return this.slope_thumbnails;
    }

    public void setSlope_thumbnails(SlopeThumbnailsBean slope_thumbnails) {
        this.slope_thumbnails = slope_thumbnails;
    }

    public List<SlopesBean> getSlopes() {
        return this.slopes;
    }

    public void setSlopes(List<SlopesBean> slopes) {
        this.slopes = slopes;
    }

    public List<SlopeCoordinatesBean> getSlope_coordinates() {
        return this.slope_coordinates;
    }

    public void setSlope_coordinates(List<SlopeCoordinatesBean> slope_coordinates) {
        this.slope_coordinates = slope_coordinates;
    }

    public List<SlopeOverviewBean> getSlope_overview() {
        return this.slope_overview;
    }

    public void setSlope_overview(List<SlopeOverviewBean> slope_overview) {
        this.slope_overview = slope_overview;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.slope_thumbnails, flags);
        dest.writeTypedList(this.slopes);
        dest.writeTypedList(this.slope_coordinates);
        dest.writeTypedList(this.slope_overview);
    }

    public static class SlopeThumbnailsBean implements Parcelable {
        public static final Parcelable.Creator<SlopeThumbnailsBean> CREATOR = new Parcelable.Creator<SlopeThumbnailsBean>() {
            @Override
            public SlopeThumbnailsBean createFromParcel(Parcel in2) {
                return new SlopeThumbnailsBean(in2);
            }

            @Override
            public SlopeThumbnailsBean[] newArray(int size) {
                return new SlopeThumbnailsBean[size];
            }
        };
        private String slope_thumbnail;
        private String slope_thumbnail_with_category;

        @Override
        public int describeContents() {
            return 0;
        }

        public SlopeThumbnailsBean() {
        }

        protected SlopeThumbnailsBean(Parcel in2) {
            this.slope_thumbnail = in2.readString();
            this.slope_thumbnail_with_category = in2.readString();
        }

        public String getSlope_thumbnail() {
            return this.slope_thumbnail;
        }

        public void setSlope_thumbnail(String slope_thumbnail) {
            this.slope_thumbnail = slope_thumbnail;
        }

        public String getSlope_thumbnail_with_category() {
            return this.slope_thumbnail_with_category;
        }

        public void setSlope_thumbnail_with_category(String slope_thumbnail_with_category) {
            this.slope_thumbnail_with_category = slope_thumbnail_with_category;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.slope_thumbnail);
            dest.writeString(this.slope_thumbnail_with_category);
        }
    }

    public static class SlopesBean implements Parcelable {
        public static final Parcelable.Creator<SlopesBean> CREATOR = new Parcelable.Creator<SlopesBean>() {
            @Override
            public SlopesBean createFromParcel(Parcel in2) {
                return new SlopesBean(in2);
            }

            @Override
            public SlopesBean[] newArray(int size) {
                return new SlopesBean[size];
            }
        };
        private int avg_cadence;
        private double avg_grade;
        private int avg_heartrate;
        private int avg_power;
        private double avg_speed;
        private String category;
        private double distance;
        private int distance_3d;
        private int duration;
        private double elevation_gain;
        private double end_altitude;
        private double end_dis;
        private int end_index;
        private double end_latitude;
        private double end_longitude;
        private long end_time;
        private int estimate_time;
        private int index;
        private int level;
        private int max_cadence;
        private double max_grade;
        private int max_heartrate;
        private int max_power;
        private double max_speed;
        private int sample_end_index;
        private int sample_start_index;
        private double score;
        private int sport_type;
        private double start_altitude;
        private double start_dis;
        private int start_index;
        private double start_latitude;
        private double start_longitude;
        private long start_time;
        private double vam;

        @Override
        public int describeContents() {
            return 0;
        }

        public SlopesBean() {
        }

        protected SlopesBean(Parcel in2) {
            this.end_dis = in2.readDouble();
            this.max_cadence = in2.readInt();
            this.avg_power = in2.readInt();
            this.avg_cadence = in2.readInt();
            this.max_grade = in2.readDouble();
            this.end_latitude = in2.readDouble();
            this.max_power = in2.readInt();
            this.duration = in2.readInt();
            this.category = in2.readString();
            this.index = in2.readInt();
            this.vam = in2.readDouble();
            this.sample_start_index = in2.readInt();
            this.start_altitude = in2.readDouble();
            this.end_index = in2.readInt();
            this.start_dis = in2.readDouble();
            this.start_longitude = in2.readDouble();
            this.distance_3d = in2.readInt();
            this.score = in2.readDouble();
            this.end_altitude = in2.readDouble();
            this.end_time = in2.readLong();
            this.end_longitude = in2.readDouble();
            this.elevation_gain = in2.readDouble();
            this.start_time = in2.readLong();
            this.estimate_time = in2.readInt();
            this.avg_heartrate = in2.readInt();
            this.max_speed = in2.readDouble();
            this.sport_type = in2.readInt();
            this.max_heartrate = in2.readInt();
            this.sample_end_index = in2.readInt();
            this.start_index = in2.readInt();
            this.distance = in2.readDouble();
            this.level = in2.readInt();
            this.avg_grade = in2.readDouble();
            this.avg_speed = in2.readDouble();
            this.start_latitude = in2.readDouble();
        }

        public double getEnd_dis() {
            return this.end_dis;
        }

        public void setEnd_dis(double end_dis) {
            this.end_dis = end_dis;
        }

        public int getMax_cadence() {
            return this.max_cadence;
        }

        public void setMax_cadence(int max_cadence) {
            this.max_cadence = max_cadence;
        }

        public int getAvg_power() {
            return this.avg_power;
        }

        public void setAvg_power(int avg_power) {
            this.avg_power = avg_power;
        }

        public int getAvg_cadence() {
            return this.avg_cadence;
        }

        public void setAvg_cadence(int avg_cadence) {
            this.avg_cadence = avg_cadence;
        }

        public double getMax_grade() {
            return this.max_grade;
        }

        public void setMax_grade(double max_grade) {
            this.max_grade = max_grade;
        }

        public double getEnd_latitude() {
            return this.end_latitude;
        }

        public void setEnd_latitude(double end_latitude) {
            this.end_latitude = end_latitude;
        }

        public int getMax_power() {
            return this.max_power;
        }

        public void setMax_power(int max_power) {
            this.max_power = max_power;
        }

        public int getDuration() {
            return this.duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public String getCategory() {
            return this.category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public int getIndex() {
            return this.index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public double getVam() {
            return this.vam;
        }

        public void setVam(double vam) {
            this.vam = vam;
        }

        public int getSample_start_index() {
            return this.sample_start_index;
        }

        public void setSample_start_index(int sample_start_index) {
            this.sample_start_index = sample_start_index;
        }

        public double getStart_altitude() {
            return this.start_altitude;
        }

        public void setStart_altitude(double start_altitude) {
            this.start_altitude = start_altitude;
        }

        public int getEnd_index() {
            return this.end_index;
        }

        public void setEnd_index(int end_index) {
            this.end_index = end_index;
        }

        public double getStart_dis() {
            return this.start_dis;
        }

        public void setStart_dis(double start_dis) {
            this.start_dis = start_dis;
        }

        public double getStart_longitude() {
            return this.start_longitude;
        }

        public void setStart_longitude(double start_longitude) {
            this.start_longitude = start_longitude;
        }

        public int getDistance_3d() {
            return this.distance_3d;
        }

        public void setDistance_3d(int distance_3d) {
            this.distance_3d = distance_3d;
        }

        public double getScore() {
            return this.score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public double getEnd_altitude() {
            return this.end_altitude;
        }

        public void setEnd_altitude(double end_altitude) {
            this.end_altitude = end_altitude;
        }

        public long getEnd_time() {
            return this.end_time;
        }

        public void setEnd_time(long end_time) {
            this.end_time = end_time;
        }

        public double getEnd_longitude() {
            return this.end_longitude;
        }

        public void setEnd_longitude(double end_longitude) {
            this.end_longitude = end_longitude;
        }

        public double getElevation_gain() {
            return this.elevation_gain;
        }

        public void setElevation_gain(double elevation_gain) {
            this.elevation_gain = elevation_gain;
        }

        public long getStart_time() {
            return this.start_time;
        }

        public void setStart_time(long start_time) {
            this.start_time = start_time;
        }

        public int getEstimate_time() {
            return this.estimate_time;
        }

        public void setEstimate_time(int estimate_time) {
            this.estimate_time = estimate_time;
        }

        public int getAvg_heartrate() {
            return this.avg_heartrate;
        }

        public void setAvg_heartrate(int avg_heartrate) {
            this.avg_heartrate = avg_heartrate;
        }

        public double getMax_speed() {
            return this.max_speed;
        }

        public void setMax_speed(double max_speed) {
            this.max_speed = max_speed;
        }

        public int getSport_type() {
            return this.sport_type;
        }

        public void setSport_type(int sport_type) {
            this.sport_type = sport_type;
        }

        public int getMax_heartrate() {
            return this.max_heartrate;
        }

        public void setMax_heartrate(int max_heartrate) {
            this.max_heartrate = max_heartrate;
        }

        public int getSample_end_index() {
            return this.sample_end_index;
        }

        public void setSample_end_index(int sample_end_index) {
            this.sample_end_index = sample_end_index;
        }

        public int getStart_index() {
            return this.start_index;
        }

        public void setStart_index(int start_index) {
            this.start_index = start_index;
        }

        public double getDistance() {
            return this.distance;
        }

        public void setDistance(double distance) {
            this.distance = distance;
        }

        public int getLevel() {
            return this.level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public double getAvg_grade() {
            return this.avg_grade;
        }

        public void setAvg_grade(double avg_grade) {
            this.avg_grade = avg_grade;
        }

        public double getAvg_speed() {
            return this.avg_speed;
        }

        public void setAvg_speed(double avg_speed) {
            this.avg_speed = avg_speed;
        }

        public double getStart_latitude() {
            return this.start_latitude;
        }

        public void setStart_latitude(double start_latitude) {
            this.start_latitude = start_latitude;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeDouble(this.end_dis);
            dest.writeInt(this.max_cadence);
            dest.writeInt(this.avg_power);
            dest.writeInt(this.avg_cadence);
            dest.writeDouble(this.max_grade);
            dest.writeDouble(this.end_latitude);
            dest.writeInt(this.max_power);
            dest.writeInt(this.duration);
            dest.writeString(this.category);
            dest.writeInt(this.index);
            dest.writeDouble(this.vam);
            dest.writeInt(this.sample_start_index);
            dest.writeDouble(this.start_altitude);
            dest.writeInt(this.end_index);
            dest.writeDouble(this.start_dis);
            dest.writeDouble(this.start_longitude);
            dest.writeInt(this.distance_3d);
            dest.writeDouble(this.score);
            dest.writeDouble(this.end_altitude);
            dest.writeLong(this.end_time);
            dest.writeDouble(this.end_longitude);
            dest.writeDouble(this.elevation_gain);
            dest.writeLong(this.start_time);
            dest.writeInt(this.estimate_time);
            dest.writeInt(this.avg_heartrate);
            dest.writeDouble(this.max_speed);
            dest.writeInt(this.sport_type);
            dest.writeInt(this.max_heartrate);
            dest.writeInt(this.sample_end_index);
            dest.writeInt(this.start_index);
            dest.writeDouble(this.distance);
            dest.writeInt(this.level);
            dest.writeDouble(this.avg_grade);
            dest.writeDouble(this.avg_speed);
            dest.writeDouble(this.start_latitude);
        }
    }

    public static class SlopeCoordinatesBean implements Parcelable {
        public static final Parcelable.Creator<SlopeCoordinatesBean> CREATOR = new Parcelable.Creator<SlopeCoordinatesBean>() {
            @Override
            public SlopeCoordinatesBean createFromParcel(Parcel in2) {
                return new SlopeCoordinatesBean(in2);
            }

            @Override
            public SlopeCoordinatesBean[] newArray(int size) {
                return new SlopeCoordinatesBean[size];
            }
        };
        private String category;
        private double end_latitude;
        private double end_longitude;

        @Override
        public int describeContents() {
            return 0;
        }

        public SlopeCoordinatesBean() {
        }

        protected SlopeCoordinatesBean(Parcel in2) {
            this.end_longitude = in2.readDouble();
            this.end_latitude = in2.readDouble();
            this.category = in2.readString();
        }

        public double getEnd_longitude() {
            return this.end_longitude;
        }

        public void setEnd_longitude(double end_longitude) {
            this.end_longitude = end_longitude;
        }

        public double getEnd_latitude() {
            return this.end_latitude;
        }

        public void setEnd_latitude(double end_latitude) {
            this.end_latitude = end_latitude;
        }

        public String getCategory() {
            return this.category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeDouble(this.end_longitude);
            dest.writeDouble(this.end_latitude);
            dest.writeString(this.category);
        }
    }

    public static class SlopeOverviewBean implements Parcelable {
        public static final Parcelable.Creator<SlopeOverviewBean> CREATOR = new Parcelable.Creator<SlopeOverviewBean>() {
            @Override
            public SlopeOverviewBean createFromParcel(Parcel in2) {
                return new SlopeOverviewBean(in2);
            }

            @Override
            public SlopeOverviewBean[] newArray(int size) {
                return new SlopeOverviewBean[size];
            }
        };
        private String category;
        private int count;
        private String name;

        @Override
        public int describeContents() {
            return 0;
        }

        public SlopeOverviewBean() {
        }

        protected SlopeOverviewBean(Parcel in2) {
            this.count = in2.readInt();
            this.name = in2.readString();
            this.category = in2.readString();
        }

        public int getCount() {
            return this.count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCategory() {
            return this.category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.count);
            dest.writeString(this.name);
            dest.writeString(this.category);
        }
    }
}
